<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
    <script>
        $(function () {
            $("#btn").click(function () {
                $.post("${pageContext.request.contextPath}/user/getList",function (data) {
                    console.log(data);
                })
            })
        });
    </script>
</head>
<body>
<input type="button" value="获取用户数据" id="btn">
<table>
    <td>用户id：</td>
    <td>姓名：</td>
    <td>密码：</td>
    <tbody>

    </tbody>
</table>

</body>
</html>